package com.hy.video.monitor.annotation;

import com.hy.video.monitor.util.Constants;
import org.springframework.security.access.prepost.PreAuthorize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 查看通道
 */
@Retention(RetentionPolicy.RUNTIME)
@PreAuthorize("hasRole('" + Constants.AUTHORITY_ADMIN + "') " +
        " or hasAuthority('" + Constants.AUTHORITY_NSEQUIPMENT_READ + "')")
public @interface RoleAdminOrNsequipmentRead {
}
